import React from 'react';
import {Router, Route,hashHistory,IndexRoute, Redirect} from 'react-router';
import Menus from './Menus';
import {changeOrderType,changeOrder_price} from './Common';
export default class OrderHouseIntro extends React.Component{
    constructor(props) {
        super(props);
        this.state={
            mounted:false,
        }
    }
    componentDidMount(){
        this.setState({
            mounted:true
        })
    }
    order(){
       let userid= localStorage.getItem('userid');
       if(userid==null || userid==''){
           hashHistory.push({
               pathname:"/login"
           })
       }else {
           changeOrder_price(159);
           hashHistory.push({
               pathname:"/orderHouseIndex/jinpai/order"
           })
       }
    }
    render(){
        return(
            <div>
                <img className="all-img" src="img/jinpai/9.png" alt=""/>
                <div className="spacing"></div>
                <div className="shendu-bx-xd">
                    <div className="all-button" id="order" onClick={this.order.bind(this)}>
                        立即预约
                    </div>
                    <ul className="shendu-bx-xd1 clearfloat">
                        <li>类别</li>
                        <li>非会员价</li>
                        <li>会员价</li>
                    </ul>
                    <ul className="shendu-bx-xd11 clearfloat">
                        <li>金牌保洁</li>
                        <li>149元/3小时</li>
                        <li>139元/3小时</li>
                    </ul>
                </div>
                <Menus/>
            </div>
        )
    }
}